package com.atguigu.apiservice.service;

import com.atguigu.apiservice.entity.Book;
import com.atguigu.servicebase.VO.BookQueryVo;
import com.atguigu.servicebase.VO.FrontVo;
import com.atguigu.servicebase.VO.OneBookVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2020-03-26
 */
public interface BookService extends IService<Book> {
    /**
     * 分页展示书籍数据带条件
     * @param pageParam
     * @param bookQueryVo
     * @return
     */
    Map<String, Object> pageListVo(Page<Book> pageParam, BookQueryVo bookQueryVo);

    FrontVo getBookInfo(String id);

    List<OneBookVo> getAllBookLable();

    void infoupload(Book book);
}
